
{% extends 'pase.html' %}
{% block class %}
    class="active"
{% endblock %}
{% block table%}
      <button><a href="{% url 'add_lad' %} ">添加</a></button>
                <table class="table table-striped">
                    <tr>
                        <th>编号</th>
                        <th>名称</th>
                        <th>楼层</th>
                        <th>房间号</th>
                        <th>负责人</th>
                        <th>操作</th>
                        <th>操作</th>
                    </tr>
                    {% for i in lad_all %}

                        <tr>
                            <p>
                            <td>{{ forloop.counter }}</td>
                            <td>{{ i.l_name }}</td>
                            <td>{{ i.floor }}</td>
                            <td>{{ i.room }}</td>
                            <td>{{ i.l_people }}</td>
                            <td>
                                <button><a href=" {% url 'exit_lad' i.pk %}">编辑</a></button>
                            </td>
                            <td>
                                <button style='color: red' type="button" value="{{ i.pk }}" class="button1" src="/del_lad/">删除
                                </button>
                            </td>
                            </p>
                        </tr>
                    {% endfor %}
                </table>
{% endblock %}

{% block script %}
    {% include 'nva.html' %}
{% endblock %}